#include "stdafx.h"
#include "RandomNoiseFactory.h"

#include "..\Generators\RandomNoise.h"
#include "../../../Framework/Toolkit.h"

using namespace Framework;

namespace MyGame {

RandomNoiseFactory::RandomNoiseFactory(void) {
}

RandomNoiseFactory::~RandomNoiseFactory(void) {
}

Generator* RandomNoiseFactory::Generate() const {
    RandomNoise* randomNoise = new RandomNoise();
    randomNoise->SetBlend((FLOAT)Toolkit::RandomFloat(0, 0.1f));
    randomNoise->SetMaxHeight((FLOAT)Toolkit::RandomFloat());
    randomNoise->SetMinHeight((FLOAT)Toolkit::RandomFloat());
    return randomNoise;
}

}
